package com.example.pay.util;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;

public class DateTimeUtil {
    private static final DateTimeFormatter ALIPAY_FMT = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    public static String alipayTimestampNow() {
        return LocalDateTime.now(ZoneId.of("Asia/Shanghai")).format(ALIPAY_FMT);
    }
}